package com.tamecode.chapter05.part13.tag;

import com.tamecode.chapter05.part11.sub1.LogonService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 测试代码注入 UserServiceFactoryBean
 */
public class TagTest {

    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:bean/chap5-13/beans-01.xml");

        LogonService logonService = ctx.getBean("logonService", LogonService.class);
        logonService.getUserDao().info(); // user dao.


    }


}
